package fr.soat.formationtests.tu;

public class Utilisateur {
  String login = "login";
  UserDao userDao = new UserDao();

  Utilisateur(){}
  
  Utilisateur(UserDao userDao) {
    this.userDao = userDao;
  }

  public boolean login(String motDePasse) {
    String motDePasseDeLaBase = userDao.getPassword(login);
    return (motDePasse.equals(motDePasseDeLaBase));
  }

  public String getLogin() { return login;}
  public void setLogin(String login) { this.login = login;}
  public UserDao getUserDao() { return userDao; }
  public void setUserDao(UserDao userDao) { this.userDao = userDao;}
}
